package sv.com.seguros.dto.asg;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "asg_abono")
public class AsgAbono implements Serializable{

	private static final long serialVersionUID = -5532863553030823133L;
	
	@Id
	@Column(name = "asg_abo_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long asgAbonoId;
	@Column(name = "asg_abo_numero_cuota", nullable = false, length = 5)
	private String asgAbonoNumeroCuota;
	@Column(name = "asg_abo_monto", nullable = false, length = 10)
	private String asgAbonoMonto;
	@Column(name = "asg_abo_fecha_limite", nullable = false, length = 8)
	private String asgAbonoFechaLimite;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "asg_pol_id", nullable = false)
	private AsgPoliza asgPoliza;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "asg_pago_id")
	private AsgPago asgPago;
	
	public Long getAsgAbonoId() {
		return asgAbonoId;
	}

	public void setAsgAbonoId(Long asgAbonoId) {
		this.asgAbonoId = asgAbonoId;
	}

	public String getAsgAbonoNumeroCuota() {
		return asgAbonoNumeroCuota;
	}

	public void setAsgAbonoNumeroCuota(String asgAbonoNumeroCuota) {
		this.asgAbonoNumeroCuota = asgAbonoNumeroCuota;
	}

	public String getAsgAbonoMonto() {
		return asgAbonoMonto;
	}

	public void setAsgAbonoMonto(String asgAbonoMonto) {
		this.asgAbonoMonto = asgAbonoMonto;
	}

	public String getAsgAbonoFechaLimite() {
		return asgAbonoFechaLimite;
	}

	public void setAsgAbonoFechaLimite(String asgAbonoFechaLimite) {
		this.asgAbonoFechaLimite = asgAbonoFechaLimite;
	}

	public AsgPoliza getAsgPoliza() {
		return asgPoliza;
	}

	public void setAsgPoliza(AsgPoliza asgPoliza) {
		this.asgPoliza = asgPoliza;
	}

	public AsgPago getAsgPago() {
		return asgPago;
	}

	public void setAsgPago(AsgPago asgPago) {
		this.asgPago = asgPago;
	}

}
